package com.sh.data.engine.domain.base.model.enums;

import java.util.Objects;

public enum TagTypeEnum {
    API(0, "数据服务");
    private Integer code;

    private String remark;

    public Integer getCode() {
        return this.code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    TagTypeEnum(Integer code, String remark) {
        this.code = code;
        this.remark = remark;
    }

    public static TagTypeEnum valueOfCode(String des) {
        for (TagTypeEnum directoryMenuEnum : values()) {
            if (Objects.equals(des, directoryMenuEnum.getCode())) {
                return directoryMenuEnum;
            }
        }
        return null;
    }
}
